package com.item.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;


import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

@Data
@TableName("video")
public class Video {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private String content;
    private String type;
    private String imgUrl;
    private String videoUrl;
    private Double playNumber;
    private Integer addNum;
    private Integer collectNum;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="Asia/beijing")
    private Date createTime;
    private String author;
    private Boolean is_add;
    private Boolean is_collect;

}
